package com.xukehong.demo.service.payment;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: xkh
 * @Date: 2019/12/7 14:04
 * @Version 1.0
 */
public abstract class AbstractPaymentService implements IPaymentService {

    @Autowired
    AbstractPaymentService abstractPaymentService;


    @Transactional
    public JSONObject payOrder(JSONObject params, HttpServletRequest request) {
        //业务处理...
        JSONObject jsonObject = abstractPaymentService.payOrder(params, request);
        return jsonObject;
    }


    @Override
    public JSONObject cashOrder(JSONObject params) {
        return null;
    }

    @Override
    public JSONObject queryCash(JSONObject params) {
        return null;
    }

    @Override
    public String queryBalance(JSONObject params) {
        return null;
    }
}
